/*
 * @Description: 文件描述
 * @Author: 1+
 * @Date: 2024-03-18 08:43:38
 * @LastEditors: 1+
 * @LastEditTime: 2024-08-27 15:14:00
 */
const getters = {
  layers: state => state.aside.layers,            //图层控制
  charts: state => state.aside.charts,            //图表组件
  configs: state => state.aside.configs,          //图表配置组件
  editCanvas: state => state.chartEdit.editCanvas,
  mousePosition: state => state.chartEdit.mousePosition,  //鼠标定位
  editCanvasConfig: state => state.chartEdit.editCanvasConfig,
  targetChart: state => state.chartEdit.targetChart,   //目标图表
  componentList: state => state.chartEdit.componentList,   //图表数组
  packagesList: state => Object.freeze(state.aside.packagesList),
  chartAlignRange: state => state.setting.chartAlignRange,   //图表拖拽时的吸附距离(px)
  getStorageInfo: state => ({
    editCanvasConfig: state.chartEdit.getEditCanvasConfig,
    componentList: state.chartEdit.componentList,
    requestGlobalConfig: state.chartEdit.requestGlobalConfig
  })
}
export default getters
